/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body */
body {
    background-color: #ffe6ee;
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header + Navigation */
header {
    background: #f9cde3;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    font-size: 2.5rem;
    color: #8a2e68;
    margin-bottom: 10px;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav ul li a {
    text-decoration: none;
    color: #4a4a4a;
    font-weight: 600;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4a154b;
    text-decoration: underline;
}

/* Goal + Fact Section */
.goal-fact-slider {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.goal-text {
    flex: 1 1 400px;
    background-color: #fff0f6;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(138,46,104,0.2);
    border: 2px solid #8a2e68; /* match border to fact slider */
}

.goal-text h1 {
    color: #8a2e68;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
}

.goal-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #5a2a50;
    text-align: justify;
}

/* FACT SLIDER */
.fact-slider {
    width: 400px;           
    height: 250px;             
    margin: 0 auto 40px auto;
    position: relative;
    overflow: hidden;
    border: 2px solid #8a2e68;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(138,46,104,0.2);
    background: #fff0f6;

    /* stack children vertically */
    display: flex;
    flex-direction: column;
    justify-content: center; /* centers the track and arrows vertically */
    align-items: center;
}

.h2-fact {
    color: #8a2e68; /* your header color */
    margin-bottom: 10px; /* spacing above facts */
}

.fact-track {
    flex: 1; /* take remaining space so facts stay centered */
    width: 100%;
    display: flex;
    align-items: center; /* vertically center facts */
    justify-content: center;
    position: relative;
}

.fact-slider .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #8a2e68;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 3;
}

.fact-slider .arrow.left {
    left: 10px;
}

.fact-slider .arrow.right {
    right: 10px;
}

.fact {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-style: italic;
    color: #5a2a50;
    font-size: 1.2rem;
    line-height: 1.5; 
    opacity: 0;
    max-width: 60%;
    transition: all 0.8s ease;
}

.fact.active {
    opacity: 1;
    transform: scale(1) rotateY(0deg);
    z-index: 2;
}

/* Info + Logo Section */
.info-logo-relation {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    justify-content: center;
}

.info-text {
    flex: 1 1 400px;
    background-color: #fff0f6;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(138,46,104,0.2);
}

.info-text h1 {
    color: #8a2e68;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
}

.info-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #5a2a50;
    text-align: justify;
}

.info-logo-container, .info-logo {
    flex: 0 0 250px;
}

.info-logo {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(138,46,104,0.3);
    object-fit: contain;
}

/* Articles Section */
.articles-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 50px;
}

.article {
    flex: 1 1 300px;
    max-width: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(138,46,104,0.2);
    display: block; 
    transition: transform 0.3s ease;
}

.article img {
    width: 100%;
    display: block;
    height: 250px; 
    object-fit: cover;
    border-radius: 12px;
}

.article:hover {
    transform: scale(1.03);
}

/* Testimonials */
.testimonial {
    display: none;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateX(30px) scale(0.95);
    transition: all 0.6s ease;
}

.testimonial.active {
    display: block;
    opacity: 1;
    transform: translateX(0) scale(1);
}

.testimonials h2 {
    text-align: left;
    color: #8a2e68;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 900px) {
    .goal-fact-slider,
    .info-logo-relation,
    .articles-container {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    nav ul li a {
        font-size: 1.2rem;
    }

    .info-logo-container {
        margin-top: 20px;
    }

    .article {
        max-width: 100%;
    }
}